package org.ims.inv.service.flow;

import org.ims.inv.model.flow.ModelFlowDef;

import cn.trymore.core.exception.ServiceException;
import cn.trymore.core.service.ServiceGeneric;
import cn.trymore.core.web.paging.PaginationSupport;
import cn.trymore.core.web.paging.PagingBean;

/**
 * Service: 工作流定义
 * 
 * @author Jeccy.Zhao
 *
 */
public interface ServiceFlowDefinition
extends ServiceGeneric<ModelFlowDef>
{
	
	/**
	 * Obtains current applied flow definition entity
	 * 
	 * @return
	 * @throws ServiceException
	 */
	ModelFlowDef getCurrentAppliedDefinition () throws ServiceException;
	
	PaginationSupport<ModelFlowDef> getPagination (ModelFlowDef entity, 
			PagingBean pagingBean) throws ServiceException;
	
}
